class CreateStudents < ActiveRecord::Migration
  def self.up
    create_table :students do |t|
      
      t.integer :login_user_id
      
      t.string  :photo
      t.string  :first_name
      t.string  :middle_name
      t.string  :last_name
      t.boolen  :gender
      t.date    :date_of_birth
      t.boolean :is_married
      t.string  :blood_group
      t.string  :nationality 
      t.string  :profession
      
      t.string  :present_address
      t.integer :present_address_pincode
      t.string  :present_address_city
      t.integer :present_address_country_id
      t.integer :present_address_mobile_no
      t.integer :present_address_telephone_no
      t.integer :present_address_alternate_contact_no
      
      t.string  :permanent_address
      t.integer :permanent_address_pincode
      t.string  :permanent_address_city
      t.integer :permanent_address_country_id
      t.integer :permanent_address_mobile_no
      t.integer :permanent_address_telephone_no
      t.integer :permanent_address_alternate_contact_no
      
      t.timestamps
    end
  end

  def self.down
    drop_table :students
  end
end
